<h2>Listing Ists</h2>

<table class="table">
  <thead>
    <tr>
      <th>Ist id</th>
      <th>Stock code</th>
      <th>Stock name</th>
      <th>Qty</th>
      <th>IQty</th>
      <th>IQty2</th>
      <th>IQty3</th>
      <th>Price</th>
      <th>Amount</th>
      <th></th>
    </tr>
  </thead>
  <tbody>
<%= for ist <- @ists do %>
    <tr>
      <td><%= ist.ist_id %></td>
      <td><%= ist.stock_code %></td>
      <td><%= ist.stock_name %></td>
      <td><%= ist.qty %></td>
      <td><%= ist.i_qty %></td>
      <td><%= ist.i_qty2 %></td>
      <td><%= ist.i_qty3 %></td>
      <td><%= ist.price %></td>
      <td><%= ist.amount %></td>

      <td class="text-right">
        <span><%= link "Show", to: ist_path(@conn, :show, ist), class: "btn btn-default btn-xs" %></span>
        <span><%= link "Edit", to: ist_path(@conn, :edit, ist), class: "btn btn-default btn-xs" %></span>
        <span><%= link "Delete", to: ist_path(@conn, :delete, ist), method: :delete, data: [confirm: gettext "Are you sure?"], class: "btn btn-danger btn-xs" %></span>
      </td>
    </tr>
<% end %>
  </tbody>
</table>

<span><%= link "New Ist", to: ist_path(@conn, :new) %></span>
